package com.xnfh.framework.bean

import com.google.gson.annotations.SerializedName

/**
 * @Description:
 * @author ziheng
 * @date 2022/12/5 17:29
 */
class BaseResp<T> {
    var statusCode: Int = -1
    var retCode: Int? = null
    var retMsg: String? = null
    @SerializedName("RetCode")
    var smsCode: Int = -1//验证码
    @SerializedName("RetMsg")
    var smsMsg: T? = null//验证码
    var status: Int = -1
    var message: String = ""
    var data: T? = null
    var result: T? = null
    var responseState: ResponseState? = null
    enum class ResponseState {
        REQUEST_START,
        REQUEST_SUCCESS,
        REQUEST_FAILED,
        REQUEST_ERROR,
        REQUEST_LOGOUT
    }
}